package com.lzw.mapper;

import com.lzw.bean.User;
import com.lzw.bean.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auther: lzw
 * @date: 2021/10/9 - 10 - 09 - 14:33
 * @Description: com.lzw.mapper
 */
@Mapper
public interface UsersMapper {

    List<Users> getUsersList();

    List<Users> getUsersListByQuery(@Param("query") String query);

    Integer updateUserStatus(@Param("id") Integer id, @Param("mg_state") boolean mg_state);

    Integer addUser(User user);

    User getUser(User user);

    User getUserById(Integer id);

    Integer updateUserInfo(@Param("id") Integer id, @Param("email") String email, @Param("mobile") String mobile);

    Integer deleteUser(@Param("id") Integer id);
}
